package grape.crm.rest.relationdetail.mapper;

import grape.crm.rest.relationdetail.form.RelationDetailListForm;
import grape.crm.service.relationdetail.po.RelationDetail;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.crm.rest.relationdetail.form.RelationDetailCreateForm;
import grape.crm.rest.relationdetail.form.RelationDetailUpdateForm;
import grape.crm.rest.relationdetail.form.RelationDetailListPageForm;
import grape.crm.rest.relationdetail.vo.RelationDetailVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 客户关系具体字典表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface RelationDetailWebMapper extends WebMapper<RelationDetailVo, RelationDetail> {

    RelationDetail formToPo(RelationDetailCreateForm f);
    RelationDetail formToPo(RelationDetailUpdateForm f);
    RelationDetail formToPo(RelationDetailListPageForm f);
    RelationDetail formToPo(RelationDetailListForm f);
}
